package com.hqyj.javaSpringBoot.modules.spider.dao;

import com.hqyj.javaSpringBoot.modules.spider.entity.Coronavirus;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author ：Cwd
 * @Description：CoronavirusDao
 * @date ：2021/8/30 17:21
 */
@Mapper
@Repository
public interface CoronavirusDao {

    @Select("select * from spider_coronavirus order by date desc limit 7")
    List<Coronavirus> getCoronavirus();
}
